package de.beuth.hochschule.ats.entitys;

import java.io.Serializable;

import com.j256.ormlite.field.DatabaseField;

public class Lecture implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@DatabaseField(generatedId = true)
	int id;
	@DatabaseField()
	String name;
	@DatabaseField
	String nativeLanguage;
	@DatabaseField
	String foreignLanguage;

	public int getId() {return id;}
	public String getName() {return name;}
	public String getNativeLanguage() {return nativeLanguage;}
	public String getForeignLanguage() {return foreignLanguage;}	

	public Lecture() {}
	
	public void update(String name, String nativeLanguage, String foreignLanguage){
		this.name = name;
		this.nativeLanguage = nativeLanguage;
		this.foreignLanguage = foreignLanguage;
	}
	
	public String toString() {
		return name;
	}
}
